package com.chisheng.utils;

import java.io.File;
import java.util.Objects;

/**
 * @author chisheng
 * @since 2021-10-28
 */
public class FileUtils {

    public static File getClasspathFile(String fileName) {
        return new File(Objects.requireNonNull(FileUtils.class.getClassLoader().getResource(fileName)).getPath());
    }

}
